package org.wangchaocheng.cloudgallery.commond.user;

import java.time.LocalDate;

import com.alibaba.cola.dto.Command;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户修改命令
 * @author wangchaocheng
 * @date 2025-03-14
 **/
@Data
@EqualsAndHashCode(callSuper = true)
public class UserModifyCmd extends Command {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID")
    private Long id;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 个人简介
     */
    private String introduction;

    /**
     * 性别
     * @see org.wangchaocheng.cloudgallery.enums.user.GenderEnum
     */
    private String gender;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 头像存储路径
     */
    private String avatar;

}
